<%--
  Created by IntelliJ IDEA.
  User: wjl
  Date: 2022/12/20
  Time: 16:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<head>
    <%@include file="/jsp/client/common_css.jsp"%>
</head>
<aside class="sidebar-wrapper">
    <div class="side-menu-wrap">
        <ul class="main-menu">
            <li>
                <a href="javascript:void(0);" class="active">
                            <span class="icon-menu feather-icon">
                                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-home"><path d="M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"></path><polyline points="9 22 9 12 15 12 15 22"></polyline></svg>
                            </span>
                    <span class="menu-text">
                                Dashboard
                            </span>
                </a>
                <ul class="sub-menu">
                    <li>
                        <a href="/teacher?method=studentMessage">
                                    <span class="icon-dash">
                                    </span>
                            <span class="menu-text">
                                        Student Message(Teacher)
                                    </span>
                        </a>
                    </li>
                    <li>
                        <a href="/admin?method=StudentRegisterMain">
                                    <span class="icon-dash">
                                    </span>
                            <span class="menu-text">
                                        Student Register(admin)
                                    </span>
                        </a>
                    </li>
                </ul>
            </li>

            <li>
                <a href="/teacher?method=MyMessage">
                            <span class="icon-menu feather-icon">
                                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-package"><line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>
                            </span>
                    <span class="menu-text">
                                MyMessage
                            </span>
                </a>
            </li>
            <li>
                <a href="/teacher?method=StudentScoreMessage">
                            <span class="icon-menu feather-icon">
                                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-package"><line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>
                            </span>
                    <span class="menu-text">
                                StudentScore
                            </span>
                </a>
            </li>
            <li>
                <a href="/jsp/OPEN/open.jsp">
                            <span class="icon-menu feather-icon">
                                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-package"><line x1="16.5" y1="9.4" x2="7.5" y2="4.21"></line><path d="M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z"></path><polyline points="3.27 6.96 12 12.01 20.73 6.96"></polyline><line x1="12" y1="22.08" x2="12" y2="12"></line></svg>
                            </span>
                    <span class="menu-text">
                               退出登录
                            </span>
                </a>
            </li>
        </ul>
    </div>
    <%@include file="/jsp/client/common_js.jsp"%>
</aside>

<script>

    function teacherID(){
        console.log("hahahhaha")
        let loginName = sessionStorage.getItem("currentName")
        console.log("loginName")
        $.ajax(
            {
                url:"${pageContext.request.contextPath}/teacher?method=MyMessage",
                type:"post",
                data:{
                   loginName:loginName
                },
                async:false,
            }

        )
        console.log("ysuadgyudasb",loginName)
    }
</script>